import dva from 'dva';
import './index.css';
import { message } from 'antd';
import createLoading from 'dva-loading';
import { browserHistory } from 'dva/router';

// 1. Initialize master
// 测试分支
const app = dva({
  ...createLoading({
    effects: true,
  }),
  onError (error) {
    message.error(error.message)
  },
})

// 2. Plugins
//app.use();

// 3. Model
//app.model(require("./models/common/common"));
// 4. Router
app.router(require('./router'));

// 5. Start
app.start('#root');
